import { defineStore } from 'pinia';

export const useCounterStore = defineStore('counter', {
  state: () => {
    return { 
        count: 1 
    }
  },
  getters: {
    double: state => {
        return state.count * 2
    },
  },
  actions: {
    increment() {
        this.count++;
    } 
  }
});
  